# Generator
#
# generates random code for the cubelife project to seed.
#
# Author: Alexander Esselink


import random
import CubeCodeCompiler as compiler

opcodes = "SIDRWJENsidrwjenQ"

size = 64 * 1024 # bytes

data = []

for i in xrange(size):	data.append([opcodes[random.randrange(len(opcodes))], random.randrange(-128,128)])


def format(command):
	return ' '.join(map(str,command))

data = '\n'.join(map(format, data))

compiler.Compile("random", data)
